import java.util.Arrays;

/**
 * Description:
 * Date: 2024/7/22
 * User: 21719
 */
public class Java0722 {
    public static void main(String[] args) {
        int[] a = {1,2,3,4,5,6,7,8,9};
        for(int x:a) {
            System.out.print(x+" ");
        }//for each循环
        System.out.println();
        String ret = Arrays.toString(a);
        System.out.println(ret);//该方法把传入的参数array表示的数组，以字符串的形式进行输出
    }
}
